<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.emp.domain.EmpTechnic" table="emp_technic">
         <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				       <param name="sequence">EMP_TECHNIC_ID_SEQ</param>
            </generator>
        </id>

        <property name="technicWay"  type="string">
             <column name="technic_way" length="50"/>
        </property>

        <property name="technicName"  type="string">
             <column name="technic_name" length="50"/>
        </property>
        
        <property name="technicDate" type="timestamp">
            <column name="technic_date" length="23"/>
        </property>

        <property name="startDate" type="timestamp">
            <column name="start_date" length="23"/>
        </property>

        <property name="endDate" type="timestamp">
            <column name="end_date" length="23"/>
        </property>


        <property name="engageUnit" type="string">
             <column name="engage_unit" length="50"/>
        </property>

        <property name="engageCircs" type="string">
             <column name="engage_circs" length="50"/>
        </property>


        <property name="useDate" type="double">
           <column name="use_date"/>
        </property>
        
        <many-to-one name="employee" class="cn.firstsoft.modules.emp.domain.Employee" fetch="select">
            <column name="emp_id"/>
        </many-to-one>
    </class>

</hibernate-mapping>
